import request from "@/utils/request";


//24小时热搜
export function getSearhHot() {
    return request({
        url:'/api/ffile/getSearchHotKey',
        method:'post'
    })
}

//提交搜索
export function getSearch(data) {
    return request({
        url:'/api/doc/search',
        method:'post',
        data
    })
}

// 获取首页方案
export function getIndexList(data){
    return request({
        url:'/api/doc/index',
        method:'post',
        data
    })
}

//获取阅读热榜
export function getHotRankList(data){
    return request({
        url:'/api/web/getHotRankList',
        method:'post',
        data
    })
}

//获取每日推荐
export function getDayRankList(data){
    return request({
        url:'/api/chart/dailyRcmd',
        method:'post',
        data
    })
}

// 生成支付二维码
export function createPayQrcode(params){
    return request({
        url:'/api/pay/wxMiniQrCode',
        method:'get',
        params
    })
}

// 获取邀请人列表
export function myInviteList(data){
    return request({
        url:'/api/invite/myInviteList',
        method:'post',
        data
    })
}

// 获取热门关键词列表
export function hotSearchList(page){
    return request({
        url:'/api/v2/hotSearch/getList',
        method:'post',
        data:{page:page,pageSize:9}
    })
}

// 获取热门行业列表
export function IndustryList(page){
    return request({
        url:'/api/v2/fileIndustry/getList',
        method:'post',
        data:{page:page,pageSize:9}
    })
}